package com.wwj.airline.Dao;
import com.wwj.airline.pojo.Seat;

import java.util.List;

public interface SeatRepository {
    public List<Seat> findAll();
    public Seat findById(Long id);
    public List<Seat> findByFlightId(Long flightId);
    public void save(Seat seat);
    public void update(Seat seat);
    public void deleteById(Long id);
    void book(Long id);
    public void sub(Long flightId,Long sequence);
}
